package com.tq.teaching_quality.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 问卷答卷明细
 * </p>
 *
 * @author YTH
 * @since 2020-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SurveyAnswerSheetDetail implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 问卷id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 学校id
     */
    private Long collegeId;

    /**
     * 答卷id
     */
    private Long surveyAnswerSheetId;

    /**
     * 问卷分配id
     */
    private Long surveyAssignId;

    /**
     * 问卷id
     */
    private Long surveyId;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 授课教师id
     */
    private Long teacherId;

    /**
     * 学生id
     */
    private Long studentId;

    /**
     * 问卷明细id，即，本答案是对应问卷里面的哪一题
     */
    private Long surveyDetailId;

    /**
     * 问卷题目id，关联到survey_question.id。 即问卷里面的这题实际是题库里面的哪一题
     */
    private Long surveyQuestionId;

    /**
     * 学生选择了这题的第几个选项。对应survey_question_choice.id
     */
    private Long chosenId;

    /**
     * 教师本题得分。关联survey_question_choice.teacher_score
     */
    private Integer teacherScore;

    /**
     * 学生本题得分。关联survey_question_choice.student_score
     */
    private Integer studentScore;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 操作者
     */
    private Long byWho;

    /**
     * 本记录是否有效
     */
    @TableLogic
    private Boolean deleted;

    /**
     * 历史版本
     */
    private Long lastVersion;


}
